-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixing video play button size on magnifying and expand mode #1183
Conversation
@@ -81,6 +80,8 @@ export default function MediaItem<T extends Record<string, any>>(props: MediaPro | |||
return true; | |||
} else if (clickAction === GALLERY_CONSTS[optionsMap.behaviourParams.item.clickAction].LINK && !hasLink) { | |||
return true; | |||
} else if (clickAction === 'ACTION' || clickAction === 'MAGNIFY') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'ACTION' &&'MAGNIFY' - should be consts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@IzaacAyelin @Galpittel
But aren't we missing the thumbnail arrow? Doesn't seems to be logical
@@ -45,7 +45,7 @@ export type MediaImplementationProps<T = {}> = T & | |||
|
|||
const getPlayButtonComponentByItemType = (type: string) => { | |||
if (type === 'video') { | |||
return <GalleryUI type={'videoPlayButton'} size={12} />; | |||
return <GalleryUI type={'videoPlayButton'} size={60} />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we want to display size 12 for thumbnail
} else if (clickAction === GALLERY_CONSTS[optionsMap.behaviourParams.item.clickAction].NOTHING) { | ||
} else if ( | ||
clickAction === GALLERY_CONSTS[optionsMap.behaviourParams.item.clickAction].NOTHING || | ||
clickAction === GALLERY_CONSTS[optionsMap.behaviourParams.item.clickAction].MAGNIFY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if click action is NOTHING than why do we want to have the full video render? it's that means it's thumbnail?
No description provided.